package com.video.application;

import com.video.netty.NettyRunning;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
public class ApplicationRunning implements CommandLineRunner {

    @Autowired
    private NettyRunning nettyRunning;

    @Override
    public void run(String... args) throws Exception {
        //连接golang服务器！
        nettyRunning.connection();
    }
}
